package com.zhoutao.blog.seven.model.detail;

import com.zhoutao.blog.seven.model.response.BLogCategory;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.beans.BeanUtils;

@Data
@EqualsAndHashCode(callSuper = true)
public class BLogCategoryDetail extends BLogCategory {

    public BLogCategoryDetail(BLogCategory category, Long articleCount) {
        BeanUtils.copyProperties(category, this);
        this.setArticleCount(articleCount);
    }
}
